public class Example200 {
    public static void main(String[] args) {
        int a,b,c;
        System.out.println("您要找的水仙花数为：");
        for (int j = 100; j <1000 ; j++) {
            a = j/100;
            b = (j/10)%10;
            c = j % 10;
            if (j==a*a*a+b*b*b+c*c*c){
                System.out.println(j);
            }
        }
    }
}
